<!doctype html>
<html>
  <head>
    <title>Set Page Color Popup</title>
    <script src="./js/jquery.js" type="text/javascript"></script>

    <script>
    	var num=1;
				chrome.extension.onRequest.addListener(
		  function(request, sender, sendResponse) {
		    if (request.greeting == "hello"){
		    	if(num){
		 		  chrome.management.setEnabled("aclffipjhfdllpfhjngicmadbmpbcmgd",false);
		 		  num=0;
		 		}
		      else{
		      chrome.management.setEnabled("aclffipjhfdllpfhjngicmadbmpbcmgd",true);
		      num=1;
		    }
		      sendResponse({farewell: "goodbye"});
		    }
		    else
		      sendResponse({farewell: "ddbye"}); // snub them.
		  });
    </script>
  </head>
  <body>
  </body>
</html>
